<?php

return array(
    'router' => array(
        'routes' => array(
            'task' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/task[/:action[/:id]]',
                    'defaults' => array(
                        '__NAMESPACE__' => 'Checklist\Controller',
                        'controller'    => 'Task',
                        'action'        => 'index',
                    ),
                    'constraints' => array(
                        //'action' => '^add|edit|delete$',                      
                        'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'    => '[0-9]+' ,
                    ),
                    'defaults'    => array(
                        'controller' => 'Checklist\Controller\Task',
                        'action'     => 'index',
                    ),
                ),
            ),
        ),
    ),

    
    'controllers' => array(
        'invokables' => array(
            'Checklist\Controller\Task' => 'Checklist\Controller\TaskController' ,	    
        ),
    ),
    
    'view_manager' => array(
        'template_path_stack' => array(
            'users' => __DIR__ . '/../view/'
        ),
    ),
);
